package com.xian.param;

public class MethodDemo1 {
    public static void main(String[] args) {
        //目标：Java基本数据类型的参数传递：值传递
        int a = 10;
        change(a);
        System.out.println(a); //10---3
    }

    public static void change(int a){
        System.out.println(a); //10---1
        a = 20;
        System.out.println(a);  //20---2
    }
}
